package com.gitee.wsl.io.channel.write

import com.gitee.wsl.annotation.InternalAPI


 interface BufferedByteWriteChannel : ByteWriteChannel {
    /**
     * Flush all pending bytes from [writeBuffer] to the internal read buffer without suspension.
     */
    @InternalAPI
     fun flushWriteBuffer()

    /**
     * Flush all pending bytes from [writeBuffer] to the internal read buffer without suspension and initiate channel close.
     */
     fun close()
}